<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page import= "java.util.*"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"    pageEncoding="ISO-8859-1"%>
<html>
<head>
	<title>Alta de Empleado</title>
	
<script type="text/javascript">
function validar(){
	if(document.form1.nombre.value==''){
		alert('El campo nombre esta vacio');
		document.form1.razonSocial.focus();
		return false;
	}
	
}

function soloNumeros(evt){
	if(window.event){
		keynum = evt.keyCode;
	}else{
		keynum = evt.which;
	}
	if(keynum>47 && keynum<58){
		return true;
	}else{
		return false;
	}
}
</script>
</head>
<body>
<br>

<form name="form" action="./ControladorSucursal" method="POST"  onsubmit="return validar();">
<fieldset>
<legend>Datos de cliente</legend>
<table>
    
    <tr><td>Nombre:</td><td><input type="TEXT" name="nombre" size=20></td></tr>
	<tr><td>Apellido:</td><td><input type="TEXT" name="apellido" size=25></td></tr>
	<tr><td>Posicion:</td><td><input type="TEXT" name="posicion" size=10 onkeypress="return soloNumeros(event)"></td></tr>
	<tr><td>Activo:</td><td><input type="TEXT" name="activo" size=30 ></td></tr>
	<tr><td>Sucursal:</td><td><input type="TEXT" name="sucursal" size=30 onkeypress="return soloNumeros(event)"></td></tr>
	    		
	<tr><td> <input type="hidden" name="action" value="altaEmpleado">
	<input type="SUBMIT" value=" Dar de alta " ></td></tr>
</table>
</fieldset>
</form>	
<a href="index.jsp" target="_self">Volver al index</a>
</body>
</html>
